home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93a.txt
/
000105_icon-group-sender _Thu Apr 1 12:23:04 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1993-04-21
|
1KB
Received: by cheltenham.cs.arizona.edu; Thu, 8 Apr 1993 13:39:30 MST
Date: 1 Apr 93 12:23:04 GMT
From: mcsun!news.funet.fi!uta!jere@uunet.uu.net (Jere K{pyaho)
Organization: University of Tampere, Finland
Subject: Earn guru status - help an Icon rookie
Message-Id: <9346@kielo.uta.fi>
Sender: icon-group-request@cs.arizona.edu
To: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
Can I ask stupid questions in this newsgroup? Thanks.
Yesterday I started to learn Icon. Today I ran into a brick
wall trying to solve Exercise 3.1 in "The Icon Programming
Language" (2nd Ed.).
Now, I understand that this
procedure genchar( s, c )
every i := ( s ? upto( c ) ) do
write ( i )
end
outputs the positions of every character of 'c' in 's'.
But how do I output the corresponding _characters_ in 's'?
I tried 'write(tab(i))', but nothing comes out. Am I missing
something fundamental perhaps?
This is Icon v8.8 (interpreter), MS-DOS 5.0. I built it
from the source using Borland C++ 3.1. Oh, incidentally,
I'd like to build the compiler too, but the _TEXT segment
is too large. Any solutions?
--
// Jere K{pyaho (jere@kielo.uta.fi) | Work is the curse of the
// University of Tampere, Finland | drinking classes. -Oscar Wilde